package baiqitun.stupro.security.core.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author kedaji
 * 用户权限校验器
 */
public interface UserPermissionValidator {
    /**
     * 用户是否有权限访问url
     * @param request 请求
     * @param authentication 授权信息
     * @return 有权限/没有权限
     */
    public boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
